import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    innerSize: {
      width: 0,
      height: 0
    }
  },
  mutations: {
    updateInnerWidth: function (state, width) {
      state.innerSize.width = width;
    },
    updateInnerHeight: function (state, height) {
      state.innerSize.height = height;
    }
  },
  getters: {
    getInnerSize: function (state) {
      return state.innerSize;
    }
  },
  actions: {
  },
  modules: {
  }
})
